package com.example.lottoscratcho;

import org.andengine.entity.scene.Scene;

public class GameManager {
	
//----------------------------------------------------------------------------------FIELDS:
	
	private final static GameManager INSTANCE = new GameManager();
	private Card currentCard;
	private Profile player;
	private Scene scene;
	
//---------------------------------------------------------------------------------METHODS:

	public void loadNewCard(Scene currentScene) {
		
		scene = currentScene; //necessary?
		MatchCard newCard = new MatchCard(currentScene);
		newCard.start();
		currentCard = newCard; 
		
	}
	
//-------------------------------------------------------------------------GETTERS/SETTERS:
	
	public Card getCurrentCard() {
		
		return currentCard;
		
	}
	
	public static GameManager getInstance() {
		
		return INSTANCE;
		
	}

	public Profile getPlayer() {
		
		return player;
		
	}
	
}
